﻿using System;
using System.Collections.Generic;
using System.Data.Entity.Core.Objects;
using System.Data.Entity.Infrastructure;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Box.Repository
{
    public class MasterRepository
    {
        public MasterRepository()
        {
            if (_Context == null)
            {
                _Context = new BoxSportSystemContext();
                //_objectContext = ((IObjectContextAdapter)_Context).ObjectContext;
            }
        }
        private BoxSportSystemContext _Context;
        protected BoxSportSystemContext Context
        {
            get { return _Context; }
        }

        //private ObjectContext _objectContext;
        //protected ObjectContext ObjectContext
        //{
        //    get { return _objectContext; }
        //}
    }
}
